Skip to main content
Glama
basementstudio

MCP DOS - Classic DOS Gaming Server

List DOS Games

Discover and explore classic DOS games available on the MCP DOS server, including DOOM, Super Mario, Tetris, and Duke Nukem 3D, for easy access and nostalgic gaming experiences.

Instructions

List all available DOS games

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the core logic of the 'List DOS Games' tool. It retrieves the keys from the DOS_GAMES object and formats them as JSON in a response content array.
    export default async function list() { const games = Object.keys(DOS_GAMES); return { content: [ { type: "text", text: JSON.stringify(games, null, 2) }, { type: "text", text: "To play a game, use the `open-dos` tool and pass the game key as argument." } ] }; }
  • src/tools/list.ts:5-14 (registration)
    The metadata object that registers the tool with the name 'List DOS Games', description, and annotations.
    export const metadata = { name: "List DOS Games", description: "List all available DOS games", annotations: { title: "List DOS games availables", readOnlyHint: true, destructiveHint: false, idempotentHint: true, }, }
  • The schema definition for the tool, which is empty indicating no input parameters are required.
    export const schema = {}
  • The DOS_GAMES constant providing the data for all available DOS games, used by the list handler to generate the list of game keys.
    export const DOS_GAMES: Record<string, { file: string; executable: string; title: string; cdnFile?: string; keys: KeyMapping[]; }> = { 'doom': { file: "upload/DOOM-@evilution.zip", executable: "./DOOM/DOOM.EXE", title: "DOOM", cdnFile: "https://js-dos.com/cdn/upload/DOOM-@evilution.zip", keys: [ { code: -1, key: 'No action' }, { code: 38, key: 'ArrowUp', text: 'Forward' }, { code: 40, key: 'ArrowDown', text: 'Back' }, { code: 37, key: 'ArrowLeft', text: 'Left' }, { code: 39, key: 'ArrowRight', text: 'Right' }, { code: 87, key: 'KeyW', text: 'Use' }, { code: 83, key: 'KeyS', text: 'Fire' }, { code: 65, key: 'KeyA', text: 'Strafe left' }, { code: 68, key: 'KeyD', text: 'Strafe right' }, { code: 13, key: 'Enter' }, ] }, 'super-mario': { file: "upload/mario-colin.zip", executable: "./Mario.exe", title: "Super Mario", cdnFile: "https://js-dos.com/cdn/upload/mario-colin.zip", keys: [ { code: -1, key: 'No action' }, { code: 37, key: 'ArrowLeft', text: 'Left' }, { code: 39, key: 'ArrowRight', text: 'Right' }, { code: 18, key: 'AltLeft', text: 'Jump' }, ] }, 'tetris': { file: "upload/Tetris-neozeed.zip", executable: "./", title: "Tetris", cdnFile: "https://js-dos.com/cdn/upload/Tetris-neozeed.zip", keys: [ { code: -1, key: 'No action' }, { code: 55, key: 'Digit7', text: 'Left' }, { code: 56, key: 'Digit8', text: 'Right' }, { code: 57, key: 'Digit9', text: 'Rotate' }, { code: 32, key: 'Space', text: 'Drop' }, { code: 13, key: 'Enter' }, ] }, 'duke3d': { file: "upload/Duke Nukem 3d-@digitalwalt.zip", executable: "./DUKE3D/DUKE3D.EXE", title: "Duke Nukem 3D", cdnFile: "https://js-dos.com/cdn/upload/Duke Nukem 3d-@digitalwalt.zip", keys: [ { code: -1, key: 'No action' }, { code: 38, key: 'ArrowUp', text: 'Forward' }, { code: 40, key: 'ArrowDown', text: 'Back' }, { code: 37, key: 'ArrowLeft', text: 'Left' }, { code: 39, key: 'ArrowRight', text: 'Right' }, { code: 17, key: 'ControlRight', text: 'Fire' }, { code: 65, key: 'KeyA', text: 'Jump' }, { code: 13, key: 'Enter' }, ] }, };

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/basementstudio/mcp-dos'

If you have feedback or need assistance with the MCP directory API, please join our Discord server